import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/wareReturnBottleBoxCollect/addOrSave',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/wareReturnBottleBoxCollect/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/wareReturnBottleBoxCollect/addOrSave',
    method: 'post',
    data
  })
}

export function copy(data) {
    return request({
        url: 'api/wareReturnBottleBoxCollect/copy',
        method: 'post',
        data
    })
}

export function exportDe(data) {
    return request({
        url: 'api/wareReturnBottleBoxCollect/export',
        method: 'post',
        data
    })
}

export function importDe(data) {
    return request({
        url: 'api/wareReturnBottleBoxCollect/import',
        method: 'post',
        data
    })
}

export function passOrReject(data) {
  const obj = {
    url: 'api/wareReturnBottleBoxCollect/passOrReject',
    method: 'post',
    data
  }
  return request(obj)
}

export function enableOrDisable(data) {
  const obj = {
    url: 'api/wareReturnBottleBoxCollect/passOrReject',
    method: 'post',
    data
  }
  return request(obj)
}
export default { add, edit, copy,exportDe, importDe, del, passOrReject,enableOrDisable }
